import request from '@/utils/request'

// 获取列表
export function getList(data) {
  return request({
    url: '/archive/catalog/import/log/list?pageNum='+data.pageNum+'&pageSize='+data.pageSize,
    method: 'post',
    data: data
  })
}

// 获取表头
export function getTitle(data) {
  return request({
    url: '/archive//catalog/import/getTitle',
    method: 'post',
    data: data
  })
}

// 导入
export function uploadList(data) {
  return request({
    url: '/archive/catalog/import/upload',
    method: 'post',
    data: data,
    timeout:3600000
  })
}

// 日志详情
export function getLogList(data) {
  return request({
    url: '/archive/catalog/import/log/id?id=' + data.id,
    method: 'post',
    data: data
  })
}
